﻿using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Playables;
using UnityEngine.Timeline;

namespace IQIGame.Onigao.GamePlay
{
    [Serializable]
    public class DummyHideClip : PlayableAsset, ITimelineClipAsset
    {
        [SerializeField] public int dummy;
        [SerializeField] public bool onlyChild = true;
        
        public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
        {
            var rPlayable = ScriptPlayable<DummyHideBehaviour>.Create(graph);
            DummyHideBehaviour clone = rPlayable.GetBehaviour();
            clone.dummy = this.dummy;
            clone.onlyChild = this.onlyChild;
            return rPlayable;
        }

        public ClipCaps clipCaps
        {
            get => ClipCaps.None;
        }
    }
}